local skel = fk.CreateSkill{
    name = "kt_st__yazhen",
    tags={Skill.Compulsory}
}

Fk:loadTranslationTable{
  ["kt_st__yazhen"] = "压阵",
  [":kt_st__yazhen"] = "锁定技，其他角色的击杀主公外的奖惩改为本阶段对你使用【杀】的次数+3。",

  ["@kt_st__yazhen-phase"] = "压阵",

  ["$kt_st__yazhen1"] = "何人闯驾，先与我通名！",
  ["$kt_st__yazhen2"] = "靠山王杨林，太师杨素，都是鼠辈而已。",
}

skel:addEffect("targetmod", {
  bypass_times = function(self, player, skill, scope, card, to)
    return card and to and player:getMark("@kt_st__yazhen-phase") > 0 and to:hasSkill(skel.name)
  end,
})

skel:addEffect(fk.TargetConfirmed, {
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and data.from:getMark("@kt_st__yazhen-phase") > 0
  end,
  on_use = function (self, event, target, player, data)
    if not data.use.extraUse then
      data.use.extraUse = true
      data.from:addCardUseHistory(data.card.trueName, -1)
      player.room:addPlayerMark(data.from,"@kt_st__yazhen-phase",-1)
    end
  end
})

skel:addEffect(fk.BuryVictim, {
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(skel.name, false, true) and player ~= target
  end,
  on_use = function(self, event, target, player, data)
    data.extra_data = data.extra_data or {}
    data.extra_data.skip_reward_punish = true
    if not data.killer then return end
    player.room:addPlayerMark(data.killer,"@kt_st__yazhen-phase",3)
  end,
})

return skel